package cn.hanna.springcloudalibaba;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author smileha
 * @create 2021-10-22 22:16
 * @description
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableDiscoveryClient   // 开启注册到nacos中的服务发现
@EnableFeignClients      // 开启feign调用微服务功能
@MapperScan(basePackages = "cn.hanna.springcloudalibaba.dao") // 开启mapper注解扫描
public class SeataOrderServiceMainApplication2001 {
    public static void main(String[] args) {
        SpringApplication.run(SeataOrderServiceMainApplication2001.class,args);
    }
}
